package com.ruoyi.restaurant.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员数据对象 sys_huiyuan
 * 
 * @author ruoyi
 * @date 2022-05-26
 */
public class SysHuiyuan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员ID */
    private Integer huiyuanId;

    /** 会员卡号 */
    @Excel(name = "会员卡号")
    private String huiyuanCardno;

    /** 会员微信卡号 */
    @Excel(name = "会员微信卡号")
    private String huiyuanWechat;

    /** 办卡日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "办卡日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date huiyuanTime;

    /** 会员折扣 */
    @Excel(name = "会员折扣")
    private BigDecimal huiyuanSales;

    /** 会员卡内余额 */
    @Excel(name = "会员卡内余额")
    private BigDecimal huiyuanBalance;

    /** 会员积分 */
    @Excel(name = "会员积分")
    private Long huiyuanJifen;

    /** 默认为1.表示卡开启状态  */
    @Excel(name = "默认为1.表示卡开启状态 ")
    private Long huiyuanStatus;

    /** 累计消费 */
    @Excel(name = "累计消费")
    private BigDecimal huiyuanXiaofei;

    public void setHuiyuanId(Integer huiyuanId) 
    {
        this.huiyuanId = huiyuanId;
    }

    public Integer getHuiyuanId() 
    {
        return huiyuanId;
    }
    public void setHuiyuanCardno(String huiyuanCardno) 
    {
        this.huiyuanCardno = huiyuanCardno;
    }

    public String getHuiyuanCardno() 
    {
        return huiyuanCardno;
    }
    public void setHuiyuanWechat(String huiyuanWechat) 
    {
        this.huiyuanWechat = huiyuanWechat;
    }

    public String getHuiyuanWechat() 
    {
        return huiyuanWechat;
    }
    public void setHuiyuanTime(Date huiyuanTime) 
    {
        this.huiyuanTime = huiyuanTime;
    }

    public Date getHuiyuanTime() 
    {
        return huiyuanTime;
    }
    public void setHuiyuanSales(BigDecimal huiyuanSales) 
    {
        this.huiyuanSales = huiyuanSales;
    }

    public BigDecimal getHuiyuanSales() 
    {
        return huiyuanSales;
    }
    public void setHuiyuanBalance(BigDecimal huiyuanBalance) 
    {
        this.huiyuanBalance = huiyuanBalance;
    }

    public BigDecimal getHuiyuanBalance() 
    {
        return huiyuanBalance;
    }
    public void setHuiyuanJifen(Long huiyuanJifen) 
    {
        this.huiyuanJifen = huiyuanJifen;
    }

    public Long getHuiyuanJifen() 
    {
        return huiyuanJifen;
    }
    public void setHuiyuanStatus(Long huiyuanStatus) 
    {
        this.huiyuanStatus = huiyuanStatus;
    }

    public Long getHuiyuanStatus() 
    {
        return huiyuanStatus;
    }
    public void setHuiyuanXiaofei(BigDecimal huiyuanXiaofei) 
    {
        this.huiyuanXiaofei = huiyuanXiaofei;
    }

    public BigDecimal getHuiyuanXiaofei() 
    {
        return huiyuanXiaofei;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("huiyuanId", getHuiyuanId())
            .append("huiyuanCardno", getHuiyuanCardno())
            .append("huiyuanWechat", getHuiyuanWechat())
            .append("huiyuanTime", getHuiyuanTime())
            .append("huiyuanSales", getHuiyuanSales())
            .append("huiyuanBalance", getHuiyuanBalance())
            .append("huiyuanJifen", getHuiyuanJifen())
            .append("huiyuanStatus", getHuiyuanStatus())
            .append("huiyuanXiaofei", getHuiyuanXiaofei())
            .toString();
    }
}
